import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class MMM {
    public static void main(String[] args) {
        String name = "yelong";
        String name1 = "yelong";
        System.out.println(name.equals(name1));
        String name2 = "yelongfengcongcong";
        System.out.println(name2.equals(name + "fengcongcong"));
        String name3 = new String(name2);
        int i = 1;
        Integer ii = new Integer(i);
        int i1 = ii.intValue();
        Integer integer = Integer.valueOf(ii);
        Integer integer1 = Integer.valueOf("1");
        System.out.println(integer.equals(integer1));
        String s = String.valueOf(1);
        String s2 = new String("1");
        System.out.println(s == s2);
        List<String> list = new ArrayList<String>();
        list.add("yelong");
        list.add("fengcongcong");
        list.add("yeweixin");
        list.add(1, "熊城明");
        List<String> strings = list.subList(2, 4);
        int yeweixin = list.indexOf("yeweixin");
        System.out.println(yeweixin  );
        MMM mmm = new MMM();
        mmm.showList(strings);
    }

    public void showList(List list) {
        Iterator<String> iterator = list.iterator();
        while (iterator.hasNext()) {
            String next = iterator.next();
            System.out.println(next);
        }
    }
}
